<template>
  <div>
        <p>
            Created <b>{{now}}</b> seconds go
        </p>
  </div>
</template>

<script lang="ts">
import { Component, Vue } from 'vue-property-decorator'

import {useNow} from 'vue-composable'


@Component({})
export default class VueComposableExample extends Vue {
  name = '';
  now:any;
  setup(){
      let i = 0;
      this.now = useNow({
          timeFn:() => ++i
      })
      return this.now;
  }

}
</script>

<style scoped>

</style>
